package com.visitcqut.domain;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: visitcqut
 * @description: 标签实体类
 * @author: ATAO
 * @create: 2020-11-13 14:10
 **/


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Tag {


    /**
     * 标签ｉｄ
     */
    private Integer id;


    /**
     * 标签名称
     */
    private String name;

    /**
     * 标签构造方法
     * @param name
     */
    public Tag(String name){
        this.name = name;
    }

    /**
     * 标签重写toString
     */
    @Override
    public String toString() {
        return "Tag{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
